
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import py.una.pol.ejb.compraventa.backingbean.PagoMasivo;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author lg_more
 */
public class Main {
    PagoMasivo pagoMasivoImpl = lookupPagoMasivoImplLocal();

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
    }

    private PagoMasivo lookupPagoMasivoImplLocal() {
        try {
            Context c = new InitialContext();
            return (PagoMasivo) c.lookup("java:global/compraventaejb2/PagoMasivoImpl!py.una.pol.ejb.compraventa.backingbean.PagoMasivo");
        } catch (NamingException ne) {
            Logger.getLogger(getClass().getName()).log(Level.SEVERE, "exception caught", ne);
            throw new RuntimeException(ne);
        }
    }
}
